package com.lzy.mall.search;

/**
 * @author lzy
 * @date 2021/9/14 16:34
 */
public class TestMain {
    public static void main(String[] args) {
        String s1 = "1_500";
        String s2 = "_500";
        String s3 = "1_";
        String[] a1 = s1.split("_");
        String[] a2 = s2.split("_");
        String[] a3 = s3.split("_");
        System.out.println(a2.length);
        System.out.println(a2[1]);
        System.out.println(a3.length);
        System.out.println();
    }
}
